﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Graficos.aspx.cs" Inherits="WebApplication1.Pages.Home.Graficos" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource1">
            <Series>
                <asp:Series ChartType="Area" Name="Series1" XValueMember="mes" 
                    YValueMembers="kwh">
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1">
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:wallet %>" 
            SelectCommand="gerargraficoluz" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:ControlParameter ControlID="lblsessao" DefaultValue="" Name="id" 
                    PropertyName="Text" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:Label ID="lblsessao" runat="server" Text="NUmero da sessao"></asp:Label>
        <asp:Chart ID="Chart2" runat="server" DataSourceID="SqlDataSource2">
            <Series>
                <asp:Series ChartType="Area" Name="Series1" XValueMember="mes" 
                    YValueMembers="metrocubico">
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1">
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:wallet %>" 
            SelectCommand="gerargraficoagua" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:ControlParameter ControlID="lblsessao" DefaultValue="" Name="id" 
                    PropertyName="Text" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
